<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RecommendProduct.ascx.cs" Inherits="Service_RecommendProduct" %>
<table width="160px">
        <tr style="background-color:#AAAAAA;">
            <th>
                People who bought this product also purchased:
            </th>
        </tr>
        <tr>
            <td>
                <asp:Repeater ID="rpHotProduct" runat="server" DataSourceID="odsRCProduct">
                    <ItemTemplate>
                        <div style="float:left; display:block">
                            <p style="padding:0 15px">
                                <asp:Image ID="hotPic" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "Picture") %>' Width="100px" Height="70px"/><br />
                                Price : <asp:Label ID="lblHotPrice" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "UnitPrice", "{0:C}") %>' /><br />
                                <asp:HyperLink ID="hpHotView" runat="server" Text="View" NavigateUrl='<%# "productdetail.aspx?ReadID=" + DataBinder.Eval(Container.DataItem, "ProductID") %>' /> |
                                <asp:LinkButton ID="hpAddToCart" runat="server" Text="AddToCart" NavigateUrl='<%# "productdetail.aspx?ReadID=" + DataBinder.Eval(Container.DataItem, "ProductID") %>' /><br />                            
                                <asp:Label ID="hotTitle" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ProductName") %>' /><br />
                                <asp:Image ID="hotRating" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "RatingImage") %>' />
                            </p>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </td>
        </tr>
    </table>
<asp:ObjectDataSource ID="odsRCProduct" runat="server" SelectMethod="GetRandom6Product"
    TypeName="Bll.ProductBll"></asp:ObjectDataSource>
